<mah:Flyout x:Class="WPFExcelReport.TWFNEW"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                   xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                 xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                 xmlns:me="clr-namespace:WPFExcelReport"
                 xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                 xmlns:WFS="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS"  
                 Header="{Binding Source={Localization:Translate Word=新事件}}"
                 mc:Ignorable="d"
                 d:DesignHeight="300"
                xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                      Loaded="Window_Loaded"
                   x:Name="TV" 
                 d:DesignWidth="300">
    <mah:Flyout.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTBoolToVisibilityConverter  x:Key="nbv"/>
        <ucd:NOTConverter x:Key="not"/>
        <ucd:PNumConverter x:Key="pnum"/> 
    </mah:Flyout.Resources>
    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel>
            <TextBlock Grid.Row="0" Text="{Binding Source={Localization:Translate Word=Something above the ScrollPanel}}" />
            <TextBlock Grid.Row="0" Text="{Binding Source={Localization:Translate Word=This Flyout animates its opacity when opening and closing.}}" />
        </StackPanel>
        <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
            <StackPanel Orientation="Vertical">
                <TextBox x:Name="firstTB" mah:TextBoxHelper.Watermark="TextBox 01" />
                <TextBox Margin="0,5,0,0" mah:TextBoxHelper.Watermark="TextBox 02" />
                <TextBox Margin="0,5,0,0" mah:TextBoxHelper.Watermark="TextBox 03" />
                <TextBox Margin="0,5,0,0" mah:TextBoxHelper.Watermark="TextBox 04" />
                <TextBox Margin="0,5,0,0" mah:TextBoxHelper.Watermark="TextBox 05" />
                <TextBox Margin="0,5,0,0" mah:TextBoxHelper.Watermark="TextBox 06" />
                <TextBox Margin="0,5,0,0" mah:TextBoxHelper.Watermark="TextBox 07" />
                <TextBox Margin="0,5,0,0" mah:TextBoxHelper.Watermark="TextBox 08" />
                <TextBox Margin="0,5,0,0" mah:TextBoxHelper.Watermark="TextBox 09" />
                <TextBox Margin="0,5,0,0" mah:TextBoxHelper.Watermark="TextBox 10" />
            </StackPanel>
        </ScrollViewer>
        <UniformGrid Grid.Row="2"
                     Margin="10"
                     Columns="2">
            <Button Margin="10"
                    Content="{Binding Source={Localization:Translate Word=Create}}"
                    Style="{DynamicResource SquareButtonStyle}" />
            <Button Margin="10"
                    Content="{Binding Source={Localization:Translate Word=Cancel}}"
                    Style="{DynamicResource SquareButtonStyle}" />
        </UniformGrid>
    </Grid>
</mah:Flyout>
